function hasPrototypeProperty(obj, prop) {
    return !obj.hasOwnProperty(prop) && prop in obj;
}
Object.prototype.hasPrototypeProperty = hasPrototypeProperty;
